package cn.attackme.myuploader.service.impl;

import cn.attackme.myuploader.dao.Plot_coordinateDao;
import cn.attackme.myuploader.model.Plot_coordinate;
import cn.attackme.myuploader.service.Plot_coordinateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class Plot_coordinateServiceImpl  implements Plot_coordinateService {

    @Autowired
    private Plot_coordinateDao plot_coordinateDao;


    @Override
    public Plot_coordinate getcoordinate(int id) {
        return plot_coordinateDao.getplot(id);
    }

    @Override
    public int save(Plot_coordinate plot_coordinate) {
        return plot_coordinateDao.save(plot_coordinate);
    }

    @Override
    public int update(Plot_coordinate plot_coordinate) {
        return plot_coordinateDao.update(plot_coordinate);
    }

    @Override
    public int deleteById(int id) {
        return plot_coordinateDao.deleteById(id);
    }

    @Override
    public List<Map<String, Object>> allList() {
        return plot_coordinateDao.allList();
    }
}
